package grape.attend.rest.classe.vo;
import grape.attend.service.clock.api.IClockService;
import grape.common.rest.validation.props.PropValid;
import grape.common.rest.vo.BaseIdVo;

import grape.common.service.trans.TransBy;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotNull;

/**
 * <p>
 * 班次设置表
 * </p>
 *
 * @author yangwei
 * @since 2020-05-08
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="班次设置数据响应对象")
public class ClasseVo extends BaseIdVo<String> {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "名称")
    private String name;

    @ApiModelProperty(value = "上班时间")
    private String startTime;

    @ApiModelProperty(value = "下班时间")
    private String endTime;

    @ApiModelProperty(value = "是否有休息时间")
    private Boolean isHasRest;

    @ApiModelProperty(value = "休息开始时间")
    private String restStartTime;

    @ApiModelProperty(value = "休息结束时间")
    private String restEndTime;

    @ApiModelProperty(value = "打卡设置id")
    private String clockId;

    @TransBy(type = IClockService.trans_name,byFieldName = "clockId")
    @ApiModelProperty(value = "打卡设置名称")
    private String clockName;

    @ApiModelProperty(value = "备注")
    private String remark;


}
